import {Module} from "vuex";

interface State {
    list: any;
    loading: boolean;
}

const message: Module<State, any> = {
    state: () => ({
        list: [],
        loading: false,
    }),
    mutations: {
        seList(state, data) {
            state.list = data;
        },
    },

    actions: {
        setName({commit}, name) {
            commit("setName", name);
        },
    },
};

export default message;
